const a = new Set([1, 2, 3, 4])
const newSet = new Set(a)
newSet.forEach(el => {
    a.add(1)
    a.delete(1)
})
console.log(a)
console.log(newSet)